package com.tongji.travelplan.unitstub;

import com.tongji.travelplan.beans.FoodBean;
import com.tongji.travelplan.beans.ScenicspotBean;
import com.tongji.travelplan.dao.ScenicspotFoodDao;

public class teatScenicspotFoodDao {
	public static void main(String[] args)
	{
		ScenicspotBean scenicspotBean = new ScenicspotBean();
		scenicspotBean.setId(2);
		//System.out.println(scenicspotBean.getId());
		FoodBean foodBean = new FoodBean();
		ScenicspotFoodDao scenicspotFoodDao = new ScenicspotFoodDao();
		scenicspotFoodDao.getFoodForScenicspot(scenicspotBean);
		System.out.println(scenicspotBean.getFoodArraylist().size());
		for(int i = 0 ; i < scenicspotBean.getFoodArraylist().size() ; i++)
		{
			foodBean = scenicspotBean.getFoodArraylist().get(i);
			System.out.println("id:"+foodBean.getId()+":"+foodBean.getName()+":"+foodBean.getPrice()+":"+foodBean.getInfomation());
		}
	}
}
